﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MedicViet.Models.mvUser>>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title>Index</title>
</head>
<body>
    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>
    <table>
        <tr>
            <th>
                username
            </th>
            <th>
                pwr
            </th>
            <th>
                permission
            </th>
            <th>
                email
            </th>
            <th>
                firstName
            </th>
            <th>
                midleName
            </th>
            <th>
                lastName
            </th>
            <th>
                address
            </th>
            <th>
                birthDate
            </th>
            <th>
                dateCreate
            </th>
            <th>
                dateModified
            </th>
            <th>
                phoneNumber
            </th>
            <th></th>
        </tr>
    
    <% foreach (var item in Model) { %>
        <tr>
            <td>
                <%: Html.DisplayFor(modelItem => item.username) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.pwr) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.permission) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.email) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.firstName) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.midleName) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.lastName) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.address) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.birthDate) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.dateCreate) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.dateModified) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.phoneNumber) %>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.id }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.id }) %> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.id }) %>
            </td>
        </tr>
    <% } %>
    
    </table>
</body>
</html>
